import getComponeName from '../pages/index.js'
export default [
    {
        path:'/login',
        component:getComponeName("Login"),
        title:"登陆"
    },
    {
        path:'/registory',
        component:getComponeName("Registory"),
        title:"注册"
    },
    {
        path:'/forgetpass',
        component:getComponeName("ForgetPass"),
        title:"忘记密码"
    },
    {
        path:'/votelist',
        component:getComponeName("VoteList"),
        title:"投票列表"
    },
    {
        path:'/changepassword',
        component:getComponeName("ChangePassword"),
        title:"修改密码"
    },
    {
        path:'/home',
        component:getComponeName("Home"),
        title:"主页",
        children:[
            {
                path:'/home/index',
                title:"首页",
                component:getComponeName("Home/Index"),
            },
            {
                path:'/home/my',
                title:"我的",
                component:getComponeName("Home/My"),
            },
            {
                path:'/home',
                redirect:'/home/index'
            }
        ]
        
    },
    {
        path:'/',
        redirect:'/login'
    }
]